<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/3/28
 * Time: 10:43
 */
namespace common\sources\read\taskcommodkeywords;

use common\models\craftsman\TaskCommodKeywords;

class TaskCommodKeywordAccess implements ITaskCommodKeywordAccess
{
   public function getTaskCommodKeyword($task_commod_id)
   {
       return TaskCommodKeywords::find()
           ->select("word,num,task_commod_id")
           ->where(['task_commod_id'=>$task_commod_id])
           ->orderBy("create_time desc")
           ->asArray()
           ->all();
   }
}